package com.rc.evcharger.mapper.ugs;


import com.rc.evcharger.common.base.BaseMapper;
import com.rc.evcharger.model.ugs.UgsMemberLevelRecord;
import com.rc.evcharger.model.ugs.UgsMemberLevelRecordExample;
import com.rc.evcharger.vo.cost.UserLevelGrowingCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UgsMemberLevelRecordMapper extends BaseMapper<Long, UgsMemberLevelRecord, UgsMemberLevelRecordExample> {

    List<UgsMemberLevelRecord> listByGrowingTypeMemberIdIntraday(@Param("tenantCode") String tenantCode,
                                                                 @Param("growingTypeId") Long growing_type_id,
                                                                 @Param("memberId") Long memberId);

    UserLevelGrowingCount countChangeValue(@Param(value = "levelGrowingId") Long levelGrowingId,
                                           @Param(value = "memberId") Long memberId);

    Integer countByMemberId(@Param("tenantCode") String tenantCode, @Param("memberId") Long memberId,@Param("growingTypeId")Long growingTypeId );

}